package IC.AST;

public class NewArrayExpression extends Expression
{
	private Type _type;
	private Expression _size;
	
	public Object Visit(Visitor visitor) { return visitor.Visit(this); }
	
	public NewArrayExpression (Interval interval, Type type, Expression size)
	{
		super(interval);
		GiveBirth(type);
		GiveBirth(size);
		_type = type;
		_size = size;
	}
	
	public Type GetASTType() { return _type; }
	public Expression GetSizeExpression() { return _size; }
}
